import request from "@/utils/yzy/request";
// import addDoctorType from "@/types/adong/addDoctor";

export default {
  //获取医生管理信息
  getDoctorMsg: () => request.post("/api/getDoctorByPageSearch"),
  //   修改医生状态的api
  changeDoctorStatusApi: (data: any) =>
    request.post("/api/updateDoctorFlagById", data),
  //获取机构种类
  getInstitutionApi: () => request.post("/api/getAllChcsOrgan"),
  //获取医生详情信息
  getDoctorDetailsApi: (id: any) =>
    request.post("/api/getDoctorDetailById", id),
  //医生新增
  addDoctorApi: (data: any) => request.post("/api/saveDoctor", data),
  //获取所有角色信息
  getAllRoleApi: () => request.post("/api/getAllRole"),
  //根据id删除医生
  delDoctorApi: (id: any) => request.post("/api/delDoctorById", id),
  //根据id修改医生账号信息
  modifyDoctorApi: (data: any) => request.post("/api/updateDoctorById", data),
};
